package com.bm.service;

import com.bm.Vo.Repair.PetDetailVo;
import com.bm.model.EjyyPet;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bm.query.Pet.*;
import com.github.pagehelper.PageInfo;

/**
*
*/
public interface EjyyPetService extends IService<EjyyPet> {

    PageInfo<EjyyPet> petListByPage(PetQuery pageQuery);

    /**
     * 新增宠物信息
     * @param petQuery
     * @return
     */
    boolean createPet(CreatePetQuery petQuery);

    /**
     * 根据id查询宠物信息
     * @param petDetailQuery
     * @return
     */
    PetDetailVo petDetailById(PetDetailQuery petDetailQuery);

    /**
     * 根据id更新宠物执照
     * @param id
     * @param petLicenseQuery
     * @return
     */
    boolean updatePetLicense(Long id, PetLicenseQuery petLicenseQuery);

    /**
     * 新增狂犬疫苗信息
     * @param id
     * @param petVaccinateQuery
     * @return
     */
    boolean InsertPetVaccinate(Long id, PetVaccinateQuery petVaccinateQuery);
}
